package com.atguigu.scala.chapter7

/**
 * @author lizikuan
 * @date 2021/5/24 11:41
 */
object $06_Tuple {
  def main(args: Array[String]): Unit = {
    val tuple = ("aa", "bb", "cc", "dd")
    val tuple2 = ("dd"->2,"ee"->3)
    val list = List("1 zhangsan 20 shenzhen", "2 wagnwu 30 beijing", "3 zhaoliu 44 shenzhen")
    println(tuple)
    println(tuple2)

    val names = for (i <- list) yield {
      val strings = i.split(" ")
      strings(1)
    }
    println(names)
  }

}
